package com.flashmoment.video.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.flashmoment.video.utils.PageUtils;
import com.flashmoment.video.utils.Query;

import com.flashmoment.video.dao.UserTagDao;
import com.flashmoment.video.entity.UserTagEntity;
import com.flashmoment.video.service.UserTagService;


@Service("userTagService")
public class UserTagServiceImpl extends ServiceImpl<UserTagDao, UserTagEntity> implements UserTagService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserTagEntity> page = this.page(
                new Query<UserTagEntity>().getPage(params),
                new QueryWrapper<UserTagEntity>()
        );

        return new PageUtils(page);
    }

}